package com.lc.yygh.hosp.service;

import com.lc.yygh.model.hosp.Department;
import com.lc.yygh.vo.hosp.DepartmentQueryVo;
import com.lc.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {

    //上传科室
    void save(Map<String,Object>map);
    //分页查询科室
    Page<Department> selectPage(int page, int limit, DepartmentQueryVo dvo);

    //删除科室
    void removeDepartment(String hoscode, String depcode);

    //根据医院编号查询科室列表
    List<DepartmentVo> findDeptTree(String hoscode);//Department不能体现前端需要的那种结构 DepartmentVo可以

    //获取科室名称
    String getDepName(String hoscode, String depcode);

    //根据医院编码和科室编码获取科室
    Department getDepartment(String hoscode, String depcode);
}
